package com.heyi.nettylong.client.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 客户端配置参数
 * @author dengfeng
 * @date 2022/4/29:10
 */
@Data
@ConfigurationProperties(prefix = "netty")
public class ClientProperties {

    private String clientId;

    private String clientSecret;

    private String serverHost;

    private int serverPort;

    /** 心跳间隔时间 */
    private int heartSeconds = 10;

    private String token;
}
